<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>过滤器filter</title>
</head>
<body>
    <div>{{ user.username }}--{{ user.username|length }}</div>
    <div>{{ mytime|dformat }}</div>
</body>
</html>